﻿// -----------------------------------------------------------------------
//  <copyright file="UserByUserNameSpec.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2025 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2025-07-17 22:07</last-date>
// -----------------------------------------------------------------------

namespace Todos.Application.Users.Specs;

public class UserByKeywordSpec(string? keyword) : SpecificationBase<User>(m =>
    keyword == null || keyword == "" || m.NickName.Contains(keyword) || m.UserName.Contains(keyword))
{ }